package com.powerteam.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Data;
import org.springframework.context.annotation.Configuration;

/**
 * 项目配置信息
 *
 * @Author jinming.zhang
 * @Date 2021/11/30
 */
@Configuration
@Data
public class PowerTeamConfig {

    /**
     * 网站的根路径 例如 /powerteam
     */
    private String webRoot;

    /**
     * 网站绝对物理路径 例如 D:/Tomcat/webapps/powerteam
     */
    private String absoluteWebRoot;

    @NacosValue(value = "${powerTeam.title}", autoRefreshed = true)
    private String title;

    @NacosValue(value = "${powerTeam.pageSize}", autoRefreshed = true)
    private Integer pageSize;

    @NacosValue(value = "${powerTeam.baiduMapAk}", autoRefreshed = true)
    private String baiduMapAk;
}
